/*
 * MIT License
 *
 * Copyright (c) 2023 OrdinaryRoad
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: douyin.proto

// Protobuf Java Version: 3.25.3
package tech.ordinaryroad.live.chat.client.codec.douyin.protobuf;

/**
 * Protobuf type {@code EpisodeChatMessage}
 */
public final class EpisodeChatMessage extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:EpisodeChatMessage)
    EpisodeChatMessageOrBuilder {
private static final long serialVersionUID = 0L;
  // Use EpisodeChatMessage.newBuilder() to construct.
  private EpisodeChatMessage(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }
  private EpisodeChatMessage() {
    content_ = "";
    colorValueList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new EpisodeChatMessage();
  }

  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_EpisodeChatMessage_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_EpisodeChatMessage_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.Builder.class);
  }

  private int bitField0_;
  public static final int COMMON_FIELD_NUMBER = 1;
  private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message common_;
  /**
   * <code>.Message common = 1;</code>
   * @return Whether the common field is set.
   */
  @java.lang.Override
  public boolean hasCommon() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * <code>.Message common = 1;</code>
   * @return The common.
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message getCommon() {
    return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.getDefaultInstance() : common_;
  }
  /**
   * <code>.Message common = 1;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.MessageOrBuilder getCommonOrBuilder() {
    return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.getDefaultInstance() : common_;
  }

  public static final int USER_FIELD_NUMBER = 2;
  private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User user_;
  /**
   * <code>.User user = 2;</code>
   * @return Whether the user field is set.
   */
  @java.lang.Override
  public boolean hasUser() {
    return ((bitField0_ & 0x00000002) != 0);
  }
  /**
   * <code>.User user = 2;</code>
   * @return The user.
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User getUser() {
    return user_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.getDefaultInstance() : user_;
  }
  /**
   * <code>.User user = 2;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.UserOrBuilder getUserOrBuilder() {
    return user_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.getDefaultInstance() : user_;
  }

  public static final int CONTENT_FIELD_NUMBER = 3;
  @SuppressWarnings("serial")
  private volatile java.lang.Object content_ = "";
  /**
   * <code>string content = 3;</code>
   * @return The content.
   */
  @java.lang.Override
  public java.lang.String getContent() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = 
          (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      content_ = s;
      return s;
    }
  }
  /**
   * <code>string content = 3;</code>
   * @return The bytes for content.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString
      getContentBytes() {
    java.lang.Object ref = content_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b = 
          com.google.protobuf.ByteString.copyFromUtf8(
              (java.lang.String) ref);
      content_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int VISIBLETOSENDE_FIELD_NUMBER = 4;
  private boolean visibleToSende_ = false;
  /**
   * <code>bool visibleToSende = 4;</code>
   * @return The visibleToSende.
   */
  @java.lang.Override
  public boolean getVisibleToSende() {
    return visibleToSende_;
  }

  public static final int GIFTIMAGE_FIELD_NUMBER = 7;
  private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image giftImage_;
  /**
   * <pre>
   *   BackgroundImage backgroundImage = 5;
   *   PublicAreaCommon publicAreaCommon = 6;
   * </pre>
   *
   * <code>.Image giftImage = 7;</code>
   * @return Whether the giftImage field is set.
   */
  @java.lang.Override
  public boolean hasGiftImage() {
    return ((bitField0_ & 0x00000004) != 0);
  }
  /**
   * <pre>
   *   BackgroundImage backgroundImage = 5;
   *   PublicAreaCommon publicAreaCommon = 6;
   * </pre>
   *
   * <code>.Image giftImage = 7;</code>
   * @return The giftImage.
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image getGiftImage() {
    return giftImage_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.getDefaultInstance() : giftImage_;
  }
  /**
   * <pre>
   *   BackgroundImage backgroundImage = 5;
   *   PublicAreaCommon publicAreaCommon = 6;
   * </pre>
   *
   * <code>.Image giftImage = 7;</code>
   */
  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ImageOrBuilder getGiftImageOrBuilder() {
    return giftImage_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.getDefaultInstance() : giftImage_;
  }

  public static final int AGREEMSGID_FIELD_NUMBER = 8;
  private long agreeMsgId_ = 0L;
  /**
   * <code>uint64 agreeMsgId = 8;</code>
   * @return The agreeMsgId.
   */
  @java.lang.Override
  public long getAgreeMsgId() {
    return agreeMsgId_;
  }

  public static final int COLORVALUELIST_FIELD_NUMBER = 9;
  @SuppressWarnings("serial")
  private com.google.protobuf.LazyStringArrayList colorValueList_ =
      com.google.protobuf.LazyStringArrayList.emptyList();
  /**
   * <code>repeated string colorValueList = 9;</code>
   * @return A list containing the colorValueList.
   */
  public com.google.protobuf.ProtocolStringList
      getColorValueListList() {
    return colorValueList_;
  }
  /**
   * <code>repeated string colorValueList = 9;</code>
   * @return The count of colorValueList.
   */
  public int getColorValueListCount() {
    return colorValueList_.size();
  }
  /**
   * <code>repeated string colorValueList = 9;</code>
   * @param index The index of the element to return.
   * @return The colorValueList at the given index.
   */
  public java.lang.String getColorValueList(int index) {
    return colorValueList_.get(index);
  }
  /**
   * <code>repeated string colorValueList = 9;</code>
   * @param index The index of the value to return.
   * @return The bytes of the colorValueList at the given index.
   */
  public com.google.protobuf.ByteString
      getColorValueListBytes(int index) {
    return colorValueList_.getByteString(index);
  }

  private byte memoizedIsInitialized = -1;
  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output)
                      throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getCommon());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getUser());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, content_);
    }
    if (visibleToSende_ != false) {
      output.writeBool(4, visibleToSende_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(7, getGiftImage());
    }
    if (agreeMsgId_ != 0L) {
      output.writeUInt64(8, agreeMsgId_);
    }
    for (int i = 0; i < colorValueList_.size(); i++) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 9, colorValueList_.getRaw(i));
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(1, getCommon());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(2, getUser());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, content_);
    }
    if (visibleToSende_ != false) {
      size += com.google.protobuf.CodedOutputStream
        .computeBoolSize(4, visibleToSende_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream
        .computeMessageSize(7, getGiftImage());
    }
    if (agreeMsgId_ != 0L) {
      size += com.google.protobuf.CodedOutputStream
        .computeUInt64Size(8, agreeMsgId_);
    }
    {
      int dataSize = 0;
      for (int i = 0; i < colorValueList_.size(); i++) {
        dataSize += computeStringSizeNoTag(colorValueList_.getRaw(i));
      }
      size += dataSize;
      size += 1 * getColorValueListList().size();
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
     return true;
    }
    if (!(obj instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage)) {
      return super.equals(obj);
    }
    tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage other = (tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage) obj;

    if (hasCommon() != other.hasCommon()) return false;
    if (hasCommon()) {
      if (!getCommon()
          .equals(other.getCommon())) return false;
    }
    if (hasUser() != other.hasUser()) return false;
    if (hasUser()) {
      if (!getUser()
          .equals(other.getUser())) return false;
    }
    if (!getContent()
        .equals(other.getContent())) return false;
    if (getVisibleToSende()
        != other.getVisibleToSende()) return false;
    if (hasGiftImage() != other.hasGiftImage()) return false;
    if (hasGiftImage()) {
      if (!getGiftImage()
          .equals(other.getGiftImage())) return false;
    }
    if (getAgreeMsgId()
        != other.getAgreeMsgId()) return false;
    if (!getColorValueListList()
        .equals(other.getColorValueListList())) return false;
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasCommon()) {
      hash = (37 * hash) + COMMON_FIELD_NUMBER;
      hash = (53 * hash) + getCommon().hashCode();
    }
    if (hasUser()) {
      hash = (37 * hash) + USER_FIELD_NUMBER;
      hash = (53 * hash) + getUser().hashCode();
    }
    hash = (37 * hash) + CONTENT_FIELD_NUMBER;
    hash = (53 * hash) + getContent().hashCode();
    hash = (37 * hash) + VISIBLETOSENDE_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
        getVisibleToSende());
    if (hasGiftImage()) {
      hash = (37 * hash) + GIFTIMAGE_FIELD_NUMBER;
      hash = (53 * hash) + getGiftImage().hashCode();
    }
    hash = (37 * hash) + AGREEMSGID_FIELD_NUMBER;
    hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
        getAgreeMsgId());
    if (getColorValueListCount() > 0) {
      hash = (37 * hash) + COLORVALUELIST_FIELD_NUMBER;
      hash = (53 * hash) + getColorValueListList().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      java.nio.ByteBuffer data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      byte[] data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseDelimitedFrom(java.io.InputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input);
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseDelimitedFrom(
      java.io.InputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseDelimitedWithIOException(PARSER, input, extensionRegistry);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      com.google.protobuf.CodedInputStream input)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input);
  }
  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3
        .parseWithIOException(PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() { return newBuilder(); }
  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }
  public static Builder newBuilder(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }
  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE
        ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(
      com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   * Protobuf type {@code EpisodeChatMessage}
   */
  public static final class Builder extends
      com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
      // @@protoc_insertion_point(builder_implements:EpisodeChatMessage)
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessageOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor
        getDescriptor() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_EpisodeChatMessage_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_EpisodeChatMessage_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.class, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.Builder.class);
    }

    // Construct using tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }
    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3
              .alwaysUseFieldBuilders) {
        getCommonFieldBuilder();
        getUserFieldBuilder();
        getGiftImageFieldBuilder();
      }
    }
    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      user_ = null;
      if (userBuilder_ != null) {
        userBuilder_.dispose();
        userBuilder_ = null;
      }
      content_ = "";
      visibleToSende_ = false;
      giftImage_ = null;
      if (giftImageBuilder_ != null) {
        giftImageBuilder_.dispose();
        giftImageBuilder_ = null;
      }
      agreeMsgId_ = 0L;
      colorValueList_ =
          com.google.protobuf.LazyStringArrayList.emptyList();
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor
        getDescriptorForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Douyin.internal_static_EpisodeChatMessage_descriptor;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage getDefaultInstanceForType() {
      return tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.getDefaultInstance();
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage build() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage buildPartial() {
      tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage result = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage(this);
      if (bitField0_ != 0) { buildPartial0(result); }
      onBuilt();
      return result;
    }

    private void buildPartial0(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.common_ = commonBuilder_ == null
            ? common_
            : commonBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.user_ = userBuilder_ == null
            ? user_
            : userBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.content_ = content_;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.visibleToSende_ = visibleToSende_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.giftImage_ = giftImageBuilder_ == null
            ? giftImage_
            : giftImageBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.agreeMsgId_ = agreeMsgId_;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        colorValueList_.makeImmutable();
        result.colorValueList_ = colorValueList_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }
    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.setField(field, value);
    }
    @java.lang.Override
    public Builder clearField(
        com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }
    @java.lang.Override
    public Builder clearOneof(
        com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }
    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }
    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field,
        java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }
    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage) {
        return mergeFrom((tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage)other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage other) {
      if (other == tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage.getDefaultInstance()) return this;
      if (other.hasCommon()) {
        mergeCommon(other.getCommon());
      }
      if (other.hasUser()) {
        mergeUser(other.getUser());
      }
      if (!other.getContent().isEmpty()) {
        content_ = other.content_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (other.getVisibleToSende() != false) {
        setVisibleToSende(other.getVisibleToSende());
      }
      if (other.hasGiftImage()) {
        mergeGiftImage(other.getGiftImage());
      }
      if (other.getAgreeMsgId() != 0L) {
        setAgreeMsgId(other.getAgreeMsgId());
      }
      if (!other.colorValueList_.isEmpty()) {
        if (colorValueList_.isEmpty()) {
          colorValueList_ = other.colorValueList_;
          bitField0_ |= 0x00000040;
        } else {
          ensureColorValueListIsMutable();
          colorValueList_.addAll(other.colorValueList_);
        }
        onChanged();
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10: {
              input.readMessage(
                  getCommonFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000001;
              break;
            } // case 10
            case 18: {
              input.readMessage(
                  getUserFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000002;
              break;
            } // case 18
            case 26: {
              content_ = input.readStringRequireUtf8();
              bitField0_ |= 0x00000004;
              break;
            } // case 26
            case 32: {
              visibleToSende_ = input.readBool();
              bitField0_ |= 0x00000008;
              break;
            } // case 32
            case 58: {
              input.readMessage(
                  getGiftImageFieldBuilder().getBuilder(),
                  extensionRegistry);
              bitField0_ |= 0x00000010;
              break;
            } // case 58
            case 64: {
              agreeMsgId_ = input.readUInt64();
              bitField0_ |= 0x00000020;
              break;
            } // case 64
            case 74: {
              java.lang.String s = input.readStringRequireUtf8();
              ensureColorValueListIsMutable();
              colorValueList_.add(s);
              break;
            } // case 74
            default: {
              if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                done = true; // was an endgroup tag
              }
              break;
            } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }
    private int bitField0_;

    private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message common_;
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.MessageOrBuilder> commonBuilder_;
    /**
     * <code>.Message common = 1;</code>
     * @return Whether the common field is set.
     */
    public boolean hasCommon() {
      return ((bitField0_ & 0x00000001) != 0);
    }
    /**
     * <code>.Message common = 1;</code>
     * @return The common.
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message getCommon() {
      if (commonBuilder_ == null) {
        return common_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.getDefaultInstance() : common_;
      } else {
        return commonBuilder_.getMessage();
      }
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public Builder setCommon(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message value) {
      if (commonBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        common_ = value;
      } else {
        commonBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public Builder setCommon(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.Builder builderForValue) {
      if (commonBuilder_ == null) {
        common_ = builderForValue.build();
      } else {
        commonBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public Builder mergeCommon(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message value) {
      if (commonBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0) &&
          common_ != null &&
          common_ != tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.getDefaultInstance()) {
          getCommonBuilder().mergeFrom(value);
        } else {
          common_ = value;
        }
      } else {
        commonBuilder_.mergeFrom(value);
      }
      if (common_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public Builder clearCommon() {
      bitField0_ = (bitField0_ & ~0x00000001);
      common_ = null;
      if (commonBuilder_ != null) {
        commonBuilder_.dispose();
        commonBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.Builder getCommonBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return getCommonFieldBuilder().getBuilder();
    }
    /**
     * <code>.Message common = 1;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.MessageOrBuilder getCommonOrBuilder() {
      if (commonBuilder_ != null) {
        return commonBuilder_.getMessageOrBuilder();
      } else {
        return common_ == null ?
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.getDefaultInstance() : common_;
      }
    }
    /**
     * <code>.Message common = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.MessageOrBuilder> 
        getCommonFieldBuilder() {
      if (commonBuilder_ == null) {
        commonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Message.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.MessageOrBuilder>(
                getCommon(),
                getParentForChildren(),
                isClean());
        common_ = null;
      }
      return commonBuilder_;
    }

    private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User user_;
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.UserOrBuilder> userBuilder_;
    /**
     * <code>.User user = 2;</code>
     * @return Whether the user field is set.
     */
    public boolean hasUser() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     * <code>.User user = 2;</code>
     * @return The user.
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User getUser() {
      if (userBuilder_ == null) {
        return user_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.getDefaultInstance() : user_;
      } else {
        return userBuilder_.getMessage();
      }
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder setUser(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User value) {
      if (userBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        user_ = value;
      } else {
        userBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder setUser(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.Builder builderForValue) {
      if (userBuilder_ == null) {
        user_ = builderForValue.build();
      } else {
        userBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder mergeUser(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User value) {
      if (userBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0) &&
          user_ != null &&
          user_ != tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.getDefaultInstance()) {
          getUserBuilder().mergeFrom(value);
        } else {
          user_ = value;
        }
      } else {
        userBuilder_.mergeFrom(value);
      }
      if (user_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public Builder clearUser() {
      bitField0_ = (bitField0_ & ~0x00000002);
      user_ = null;
      if (userBuilder_ != null) {
        userBuilder_.dispose();
        userBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <code>.User user = 2;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.Builder getUserBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getUserFieldBuilder().getBuilder();
    }
    /**
     * <code>.User user = 2;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.UserOrBuilder getUserOrBuilder() {
      if (userBuilder_ != null) {
        return userBuilder_.getMessageOrBuilder();
      } else {
        return user_ == null ?
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.getDefaultInstance() : user_;
      }
    }
    /**
     * <code>.User user = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.UserOrBuilder> 
        getUserFieldBuilder() {
      if (userBuilder_ == null) {
        userBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.User.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.UserOrBuilder>(
                getUser(),
                getParentForChildren(),
                isClean());
        user_ = null;
      }
      return userBuilder_;
    }

    private java.lang.Object content_ = "";
    /**
     * <code>string content = 3;</code>
     * @return The content.
     */
    public java.lang.String getContent() {
      java.lang.Object ref = content_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs =
            (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        content_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }
    /**
     * <code>string content = 3;</code>
     * @return The bytes for content.
     */
    public com.google.protobuf.ByteString
        getContentBytes() {
      java.lang.Object ref = content_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        content_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }
    /**
     * <code>string content = 3;</code>
     * @param value The content to set.
     * @return This builder for chaining.
     */
    public Builder setContent(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      content_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     * <code>string content = 3;</code>
     * @return This builder for chaining.
     */
    public Builder clearContent() {
      content_ = getDefaultInstance().getContent();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }
    /**
     * <code>string content = 3;</code>
     * @param value The bytes for content to set.
     * @return This builder for chaining.
     */
    public Builder setContentBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      content_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private boolean visibleToSende_ ;
    /**
     * <code>bool visibleToSende = 4;</code>
     * @return The visibleToSende.
     */
    @java.lang.Override
    public boolean getVisibleToSende() {
      return visibleToSende_;
    }
    /**
     * <code>bool visibleToSende = 4;</code>
     * @param value The visibleToSende to set.
     * @return This builder for chaining.
     */
    public Builder setVisibleToSende(boolean value) {

      visibleToSende_ = value;
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }
    /**
     * <code>bool visibleToSende = 4;</code>
     * @return This builder for chaining.
     */
    public Builder clearVisibleToSende() {
      bitField0_ = (bitField0_ & ~0x00000008);
      visibleToSende_ = false;
      onChanged();
      return this;
    }

    private tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image giftImage_;
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ImageOrBuilder> giftImageBuilder_;
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     * @return Whether the giftImage field is set.
     */
    public boolean hasGiftImage() {
      return ((bitField0_ & 0x00000010) != 0);
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     * @return The giftImage.
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image getGiftImage() {
      if (giftImageBuilder_ == null) {
        return giftImage_ == null ? tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.getDefaultInstance() : giftImage_;
      } else {
        return giftImageBuilder_.getMessage();
      }
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public Builder setGiftImage(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image value) {
      if (giftImageBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        giftImage_ = value;
      } else {
        giftImageBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public Builder setGiftImage(
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.Builder builderForValue) {
      if (giftImageBuilder_ == null) {
        giftImage_ = builderForValue.build();
      } else {
        giftImageBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public Builder mergeGiftImage(tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image value) {
      if (giftImageBuilder_ == null) {
        if (((bitField0_ & 0x00000010) != 0) &&
          giftImage_ != null &&
          giftImage_ != tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.getDefaultInstance()) {
          getGiftImageBuilder().mergeFrom(value);
        } else {
          giftImage_ = value;
        }
      } else {
        giftImageBuilder_.mergeFrom(value);
      }
      if (giftImage_ != null) {
        bitField0_ |= 0x00000010;
        onChanged();
      }
      return this;
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public Builder clearGiftImage() {
      bitField0_ = (bitField0_ & ~0x00000010);
      giftImage_ = null;
      if (giftImageBuilder_ != null) {
        giftImageBuilder_.dispose();
        giftImageBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.Builder getGiftImageBuilder() {
      bitField0_ |= 0x00000010;
      onChanged();
      return getGiftImageFieldBuilder().getBuilder();
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ImageOrBuilder getGiftImageOrBuilder() {
      if (giftImageBuilder_ != null) {
        return giftImageBuilder_.getMessageOrBuilder();
      } else {
        return giftImage_ == null ?
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.getDefaultInstance() : giftImage_;
      }
    }
    /**
     * <pre>
     *   BackgroundImage backgroundImage = 5;
     *   PublicAreaCommon publicAreaCommon = 6;
     * </pre>
     *
     * <code>.Image giftImage = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
        tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ImageOrBuilder> 
        getGiftImageFieldBuilder() {
      if (giftImageBuilder_ == null) {
        giftImageBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
            tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.Image.Builder, tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.ImageOrBuilder>(
                getGiftImage(),
                getParentForChildren(),
                isClean());
        giftImage_ = null;
      }
      return giftImageBuilder_;
    }

    private long agreeMsgId_ ;
    /**
     * <code>uint64 agreeMsgId = 8;</code>
     * @return The agreeMsgId.
     */
    @java.lang.Override
    public long getAgreeMsgId() {
      return agreeMsgId_;
    }
    /**
     * <code>uint64 agreeMsgId = 8;</code>
     * @param value The agreeMsgId to set.
     * @return This builder for chaining.
     */
    public Builder setAgreeMsgId(long value) {

      agreeMsgId_ = value;
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }
    /**
     * <code>uint64 agreeMsgId = 8;</code>
     * @return This builder for chaining.
     */
    public Builder clearAgreeMsgId() {
      bitField0_ = (bitField0_ & ~0x00000020);
      agreeMsgId_ = 0L;
      onChanged();
      return this;
    }

    private com.google.protobuf.LazyStringArrayList colorValueList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
    private void ensureColorValueListIsMutable() {
      if (!colorValueList_.isModifiable()) {
        colorValueList_ = new com.google.protobuf.LazyStringArrayList(colorValueList_);
      }
      bitField0_ |= 0x00000040;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @return A list containing the colorValueList.
     */
    public com.google.protobuf.ProtocolStringList
        getColorValueListList() {
      colorValueList_.makeImmutable();
      return colorValueList_;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @return The count of colorValueList.
     */
    public int getColorValueListCount() {
      return colorValueList_.size();
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param index The index of the element to return.
     * @return The colorValueList at the given index.
     */
    public java.lang.String getColorValueList(int index) {
      return colorValueList_.get(index);
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param index The index of the value to return.
     * @return The bytes of the colorValueList at the given index.
     */
    public com.google.protobuf.ByteString
        getColorValueListBytes(int index) {
      return colorValueList_.getByteString(index);
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param index The index to set the value at.
     * @param value The colorValueList to set.
     * @return This builder for chaining.
     */
    public Builder setColorValueList(
        int index, java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureColorValueListIsMutable();
      colorValueList_.set(index, value);
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param value The colorValueList to add.
     * @return This builder for chaining.
     */
    public Builder addColorValueList(
        java.lang.String value) {
      if (value == null) { throw new NullPointerException(); }
      ensureColorValueListIsMutable();
      colorValueList_.add(value);
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param values The colorValueList to add.
     * @return This builder for chaining.
     */
    public Builder addAllColorValueList(
        java.lang.Iterable<java.lang.String> values) {
      ensureColorValueListIsMutable();
      com.google.protobuf.AbstractMessageLite.Builder.addAll(
          values, colorValueList_);
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @return This builder for chaining.
     */
    public Builder clearColorValueList() {
      colorValueList_ =
        com.google.protobuf.LazyStringArrayList.emptyList();
      bitField0_ = (bitField0_ & ~0x00000040);;
      onChanged();
      return this;
    }
    /**
     * <code>repeated string colorValueList = 9;</code>
     * @param value The bytes of the colorValueList to add.
     * @return This builder for chaining.
     */
    public Builder addColorValueListBytes(
        com.google.protobuf.ByteString value) {
      if (value == null) { throw new NullPointerException(); }
      checkByteStringIsUtf8(value);
      ensureColorValueListIsMutable();
      colorValueList_.add(value);
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }
    @java.lang.Override
    public final Builder setUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }


    // @@protoc_insertion_point(builder_scope:EpisodeChatMessage)
  }

  // @@protoc_insertion_point(class_scope:EpisodeChatMessage)
  private static final tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage DEFAULT_INSTANCE;
  static {
    DEFAULT_INSTANCE = new tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage();
  }

  public static tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<EpisodeChatMessage>
      PARSER = new com.google.protobuf.AbstractParser<EpisodeChatMessage>() {
    @java.lang.Override
    public EpisodeChatMessage parsePartialFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      Builder builder = newBuilder();
      try {
        builder.mergeFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(builder.buildPartial());
      } catch (com.google.protobuf.UninitializedMessageException e) {
        throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e)
            .setUnfinishedMessage(builder.buildPartial());
      }
      return builder.buildPartial();
    }
  };

  public static com.google.protobuf.Parser<EpisodeChatMessage> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<EpisodeChatMessage> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public tech.ordinaryroad.live.chat.client.codec.douyin.protobuf.EpisodeChatMessage getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }

}

